<?php

use think\facade\Route;

Route::get('api/colour', 'api/Store/colour');
Route::get('api/reads', 'api/Place/reads');
Route::post('api/updates', 'api/Place/updates');
Route::get('api/des', 'api/Place/des');
Route::get('api/pay/integral', 'api/Pay/integral');
Route::get('pay/lianlian', 'api/Pay/lianlian');
Route::get('api/user/invite', 'api/User/invite');  //分享数据接口
Route::get('api/user/inviter', 'api/User/inviter');  //分享数据接口
Route::get('api/sign', 'api/Signin/sign');
Route::get('api/change', 'api/PrizeOrder/change');
Route::get('api/money', 'api/Order/money');
Route::post('api/confirm', 'api/PrizeOrder/confirm');
Route::get('api/prize/convert', 'api/PrizeOrder/convert');
Route::get('api/prize/unconvert', 'api/PrizeOrder/unconvert');
Route::post('api/prize/gashapon', 'api/PrizeOrder/gashapon');
Route::get('api/exchange', 'api/PrizeOrder/exchange');
Route::get('api/follow', 'api/User/follow');
Route::post('api/binding', 'api/Login/binding');
Route::post('api/quick', 'api/Login/quick');
Route::post('api/bindwx', 'api/Login/bindwx');
Route::post('api/user/upgrade', 'api/User/upgrade');
Route::post('api/flop', 'api/PrizeOrder/flop');
Route::get('api/category', 'api/Store/category');
Route::get('api/read/meal', 'api/Read/meal'); // 阅读币套餐
Route::get('api/pay/recharge', 'api/Pay/recharge'); // 支付宝支付
Route::post('api/read/pay', 'api/Read/pay'); //游戏币购买
Route::get('api/book/similar', 'api/Book/similar'); //游戏币购买
Route::get('api/order/integral', 'api/order/integral'); //游戏币购买
Route::get('api/read/content/bookid/:bookid/chapterid/:chapterid', 'api/Read/contents');//小说内容
Route::get('api/game/configure', 'api/Game/configure'); // 游戏配置
Route::post('api/book/search', 'api/Book/search'); // 书籍检索
Route::get('api/gashapon/demo', 'api/Gashapon/demo'); // 扭蛋试玩
Route::post('api/login/wxcreate', 'api/Login/wxcreate'); // 扭蛋试玩
Route::post('api/login/one', 'api/Login/one'); //一键登录

return [
    '__rest__' => [
        'api/index'      => 'api/Index',
        'api/meal'       => 'api/Meal',
        'api/pay'        => 'api/Pay',
        'api/store'      => 'api/Store',
        'api/message'    => 'api/Message',
        'api/order'      => 'api/Order',
        'api/place'      => 'api/Place',
        'api/login'      => 'api/Login',
        'api/banner'     => 'api/Banner',
        'api/winning'    => 'api/Winning',
        'api/setting'    => 'api/Setting',
        'api/details'    => 'api/OrderDetails',
        'api/game'       => 'api/Game',
        'api/buymeal'    => 'api/BuyMeal',
        'api/feedback'   => 'api/Feedback',
        'api/user'       => 'api/User',
        'api/sns'        => 'api/Sns',
        'api/signin'     => 'api/Signin',
        'api/appcheck'   => 'api/AppCheck',
        'api/prize'      => 'api/Prize',
        'api/prizeorder' => 'api/PrizeOrder',
        'api/prizelist'  => 'api/PrizeList',
        'api/cash'       => 'api/Cash',
        'api/bookrack'   => 'api/Bookrack',
        'api/book'   => 'api/Book',
        'api/read'   => 'api/Read',
        'api/reading_award'   => 'api/ReadingAward',
    ],
];